package ddd.ajava.chapter4.question2;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


@Target({ElementType.TYPE,ElementType.FIELD})//类、变量可以标注
@Retention(RetentionPolicy.RUNTIME)
public @interface Column {
	public String value() default "";
	public boolean nullable() default false;
	public int maxlength() default -1;
	public int minlength() default -1;
	public int maxvalue() default -1;
	public int minvalue() default -1;
	
}
